<template>
  <div>
    <h1>作用域插槽</h1>
    <hr/>
    <div>
      <slot v-bind:user='user'>
        <!-- {{firstName}} -->
        {{user.firstName}}
      </slot>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      user: {
        firstName: 'tom',
        lastName: 'jerry'
      }
    }
  }
}
</script>
